package com.core.util;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
/**
 * 登录用户记录信息
 * @author laker
 *
 */
public class BaseUser extends User {
	/**
	 * Users(id) 主键值
	 */
	private Long id ;
	/**
	 * Users(showName) 显示名称
	 */
	private String showName;
	
	public BaseUser(Long id , String showName,String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
		this.id = id;
		this.showName = showName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getShowName() {
		return showName;
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -949019956958507605L;

}
